package com.italicatab;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;

public class ContactUs extends Activity implements OnClickListener {
	ImageView IV_HOME, IV_PRODUCTS, IV_PROJECTS, IV_CONTACTS, IV_ABOUT,
			IV_APPLOGO;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.contact_us);
		init();
	}

	private void init() {
		IV_HOME = (ImageView) findViewById(R.id.iv_home);
		IV_HOME.setOnClickListener(this);
		IV_PRODUCTS = (ImageView) findViewById(R.id.iv_products);
		IV_PRODUCTS.setOnClickListener(this);
		IV_CONTACTS = (ImageView) findViewById(R.id.iv_contact);
		IV_CONTACTS.setOnClickListener(this);
		IV_PROJECTS = (ImageView) findViewById(R.id.iv_projects);
		IV_PROJECTS.setOnClickListener(this);
		IV_ABOUT = (ImageView) findViewById(R.id.iv_about);
		IV_ABOUT.setOnClickListener(this);
		IV_APPLOGO = (ImageView) findViewById(R.id.iv_applogo);
		IV_APPLOGO.setOnClickListener(this);
	}
	@Override
	protected void onDestroy() {
		// TODO Auto-generated method stub
		super.onDestroy();
		System.gc();
	}

	@Override
	public void onClick(View v) {
		if (v == IV_HOME) {
			Intent i = new Intent(getApplicationContext(), HomeScreen.class);
			startActivity(i);
			finish();
		} else if (v == IV_PRODUCTS) {
			Intent i = new Intent(getApplicationContext(), Product.class);
			startActivity(i);
			finish();
		} else if (v == IV_PROJECTS) {
			 Intent i = new Intent(getApplicationContext(), Projects.class);
			 startActivity(i);
			 finish();
		} else if (v == IV_ABOUT) {
			 Intent i = new Intent(getApplicationContext(), AboutUs.class);
			 startActivity(i);
			 finish();
		} else if (v == IV_APPLOGO) {
			 finish();
		}

	}

}
